package item.inkcloud.communityservice.mapper;


import item.inkcloud.communityservice.entity.Article;
import item.inkcloud.communityservice.pojo.BriefArticleInfo;
import item.inkcloud.communityservice.pojo.DetailedArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@Mapper
public interface ArticleMapper {



      void publishArticle(Article article);



      ArrayList<BriefArticleInfo> getAllBrief();

      DetailedArticleInfo findArticleById(String articleId);

}
